package com.cium.aqie.myClass

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/8/27 11:45
 */
class Boy (nature: String, look: String, voice: String): People(nature, look, voice){
    // 次级构造器
    constructor() : this("善良","帅气","温和")

    /**
     * DSL
     */
    infix fun  have(any: Any):Boolean{
        return any is Boy
    }
}